import { isObject } from '../shared/utils'
import { mutableHandler } from './mutableHandler'

function reactive(target) {
  if (!isObject(target)) {
    return target
  }
  return new Proxy(target, mutableHandler)
}

export {
  reactive
}